<div class="gou_con">
		<div class="gou_line">
			<i>&#xe60e;</i><span class="gou_le"><{$setting.block_name}></span>
			<span class="gou_right">
				<ul>
				<{foreach from=$setting.morelink item=item key=key}>
				<li><a href="<{$item.v}>">
					<span class="gou_right_text"><{$item.k}></span>
					<span class="gou_right_line">|</span></a>
				</li>
				<{/foreach}>
				</ul>
			</span>
		</div>
		<div class="gou_pro auto-bind-widget" id="sub_slide" data-widget-type="Slide" data-widget-config="{
		autoplay:false,
		effect:'scrollx',
		hasTriggers:false,
		panels:'.slide-item',
		haslrbtn:true,
		isFloat:false,
		viewStep:4
		}">
			<div class="lo_icon1 prev"><a class="sPrev" href="javascript:void(0)"><i>&#xe618;</i></a></div>
			<div class="slide-box" style="position:relative">
				<ul class="slide-list">
					<{foreach from=$data.goodsRows item=row key=gid name=goodsrow}>
					<li class="slide-item">
						<ins>
							<{assign var=pickey  value=$setting.gpic_size|default:'goodsPicM' }>
							<a href="<{$row.goodsLink}>"><img src="<{$row[$pickey]}>"/></a>
                            
							<div class="gou_but">
								<div class="gou_title"><a href="<{$row.goodsLink}>"><{$row.goodsName}>&nbsp;<{$row.products[0].bn}></a></div>
                                <p><{t}>品牌：<{/t}><{$row.goodsBrandName}></p>
                                <p><{t}>单价：<{/t}><font class="unit-price"><{$row.goodsSalePrice|cur}> </font></p>
								<div class="gou_title1 fl">
									<{if $data.login=='nologin'}>
									<a href="<{link app=b2c ctl=site_passport act=login}>"><i>&#xe60c;</i><{t}>收藏<{/t}></a>
									<{else}>
									<!--<a href="javascript:void(0)" data-gid="<{$row.goodsId}>" onclick="addfav(this)"><i>&#xe60d;</i>收藏2&nbsp;&nbsp;&nbsp;215</a>-->
										<{if $row.is_fav}>
										<a href="javascript:void(0);" rev="_favbtn_" style="color:#F18007;" ><i>&#xe60c;</i><{t}>已收藏<{/t}></a>
										<{else}>
										<a href="javascript:void(0);" rel="_favbtn_" data-gid="<{$row.goodsId}>" onclick="addfav(this)"><i>&#xe60c;</i><{t}>收藏<{/t}></a>
										<{/if}>
									<{/if}>
								</div>
								<div class="gou_input fr">
									<a class="btn btn-major action-addtocart" href="<{link app=b2c ctl=site_cart act=add arg0=goods arg1=$row.goodsId arg2=$goods.products[0].product_id arg3=1}>" target="_dialog_minicart"><span><span><i class="iconfont">&#xe616;</i><{t}>加入购物车<{/t}></span></span></a>
								</div>
							</div>
						</ins>
					</li>
					<{/foreach}>
				</ul>
			</div>
			<div class="lo_icon1 next" id="lo_icon1"><a class="sNext" href="javascript:void(0)"><i>&#xe617;</i></a></div>
		</div>	
	</div>
<script>
function addfav(e){
	new Request({
		url: '<{link app=b2c ctl=site_member act=ajax_fav}>',
		method:'post',
        data:  'gid='+e.get('data-gid')+'&type=goods',
        onSuccess: function(rs){
			e.set('html','<a href="javascript:void(0);" rev="_favbtn_" style="color:#F18007;" ><i>&#xe60c;</i><{t}>已收藏<{/t}></a>');
        }
	}).post();
}
</script>